package com.lovo.service.impl;

import com.lovo.dao.CourseDAO;
import com.lovo.model.CourseDO;
import com.lovo.model.UserDO;
import com.lovo.service.CourseService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @title
 * @author: luo
 * @date: 2020/11/19 20:45
 */
@Service
public class CourseServiceImpl implements CourseService {

    @Resource
    private CourseDAO courseDAO;

    @Override
    public List<CourseDO> findAll() {
        return courseDAO.findAll();
    }

    @Override
    public void save(CourseDO courseDO) {
        courseDAO.save(courseDO);
    }

    @Override
    public void delete(CourseDO courseDO) {
        courseDAO.delete(courseDO);
    }
}
